//
//  Study.swift
//  funcode
//
//  Created by Wan Jiading on 2016/12/2.
//  Copyright © 2016年 WanJiading. All rights reserved.
//	菱形缺陷

import UIKit

protocol Nameable {
	var name: String { get }
}

protocol Identifiable {
	var name: String { get }
	var id: Int { get }
}


extension Nameable {
	var name: String { return "Nameable default name" }
}

extension Identifiable {
//	var name: string { return "Identifiable default name" }
}

struct Student: Nameable, Identifiable {
	internal var id: Int

//	internal var name: String
	
}
